<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
include_once '../model.php';

$urlxml = "../resources/config.xml";
$config= new SimpleXmlElement($urlxml,1,true);

$host = $config->database->host;
$dbname = $config->database->name;
$user = $config->database->user;
$pass = $config->database->password;

$pkid = $_REQUEST['pkid'];

$model = new Model($host,$dbname,$user,$pass);

$page = $model->db2xslt($pkid,"../scheda.xsl");

print $page;

?>